<?php

declare( strict_types = 1 );

namespace App\Common\Model\Base\DataUnit;

use App\Common as com;
use App\Common\Model\Base as nameBase;

class Base extends com\Cla\ClaBase {

	/**
	 * @param nameBase\DataUnit $dataUnit
	 * @throws
	 */
	public function __construct( nameBase\DataUnit $dataUnit ) {
		$this->goWeakReferencePool()->create( 'dataUnit', $dataUnit );
		//
		parent::__construct();
	}

	/**
	 * @return nameBase\DataUnit
	 * @throws
	 */
	protected function getDataUnit(  ):nameBase\DataUnit {
		return $this->goWeakReferencePool()->get( 'dataUnit' );
	}

}
